package top.blackr.folivora.common.core.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * todo 有空抄一下<br>
 * {@link org.springframework.http.HttpStatus}
 */
@Getter
@AllArgsConstructor
public enum ResultEnum {

    SUCCESS(1, "成功", "SUCCESS"),
    FAIL(999, "失败", "FAIL"),
    FAIL_PAY(900, "支付失败", "pay fail"),
    INVALID_TOKEN(1000, "无效token", "invalid token"),
    LOGIN_OUT_SUCCESS(1, "登出成功", "login out success"),
    PLEASE_LOGIN(100, "请登录", "please login"),
    INSUFFICIENT_PERMISSIONS(101, "权限不够，请联系管理员！", "insufficient permissions"),
    LACK_OF_NECESSARY_ATTRIBUTES(102, "缺少必要属性，登录失败！", "lack of necessary attributes"),
    WRONG_ACCOUNT_NUMBER_OR_PASSWORD(103, "账号或者密码错误", "wrong account number or password"),
    MISSING_PRINCIPAL(104, "缺少必要参数", "missing principal"),
    LOGIN_TYPE_NOT_SUPPORTED(105, "暂不支持登录方式", "Login method is not supported for the time being."),
    NOTIFICATION_TYPE_NOT_SUPPORTED(105, "暂不支持通知方式", "Notification method is not supported for the time being."),
    DATA_ABNORMAL(106, "数据异常", "data abnormal"),

    ;

    private final Integer code;
    private final String cnMes;
    private final String enMes;
}
